//
//  Event.h
//  XPhoto
//
//  Created by baboy on 2019/8/7.
//  Copyright © 2019 baboy. All rights reserved.
//

#import "User.h"
#import "SearchArgs.h"

NS_ASSUME_NONNULL_BEGIN
#define API_EVENT_SEARCH    @"event_search"

@class EventSearchArgs;

@interface Event : Model
@property(nonatomic, assign) NSInteger id;
@property(nonatomic, strong) NSString *action;
@property(nonatomic, strong) NSString *content;
@property(nonatomic, strong) User *operator;
@property(nonatomic, strong) NSDate *createTime;


+ (id)searchWithArgs:(EventSearchArgs *)args
            callback:(void(^)(id task, id events, NSError *error))callback;
@end

@interface  EventSearchArgs : SearchArgs
@property(nonatomic, assign) NSInteger maxId;
@end
NS_ASSUME_NONNULL_END
